package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);

    //新增用户
    void add(User user, Integer[] roleIds);
    //分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);
    //根据id查找用户
    User findById(Integer id);
    //根据用户的id查找角色信息的id
    List<Integer> findRoleIdsByUserId(Integer id);
    //编辑用户
    void edit(User user,Integer[] roleIds);
    //删除用户
    void delete(Integer userId);
}
